﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PatronageExcelReport.aspx.cs" 
    Inherits="MTRC.ODMS.Web.SOM.PassengerFlow.PatronageExcelReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
    <title>Patronage Excel Report</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
     <%-- add by gordon 20150812 | For Search Wait Cursor --%>
         <link id="cssWait" rel="stylesheet" type="text/css" /> 
    <script src="../../Javascript/CommonFunction.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ConfirmUpload() {
            if (confirm('Do you want to upload the file?')) {
                return true;
            }
            return false;
        }

        function ShowUploadTemplate() {
            window.showModalDialog(encodeURI("../Popup/PopupPassengerFlowTemplate.aspx?randomid=" + Math.floor(Math.random() * 100)), window, 'dialogHeight:210px;dialogWidth:600px,center:yes,resizable:no,scroll:no,status:no,unadorne:yes');
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M1410" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">
                                <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M141003" ParentMenuID="M1410" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <!--********************************Put your contents here!********************************-->
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td width="10%" style="padding-left:10px;">
                                            <asp:Label ID="lblOperatingDay" runat="server" Text="Operating Day:"></asp:Label><em>*</em>
                                        </td>
                                        <td width="10%">
                                            <APJ:DateTextBox ID="dtbOperatingDay" runat="server" />
                                        </td>
                                        <td width="60%">
                                            <%-- update by gordon 20150910 | Add  OnClientClick="return ExportClick('../../CSS/ForAdmRegWaitCursor.css',this.id)" --%>
                                            <asp:Button ID="btnExporttoExcel" runat="server" Text="Export"  OnClientClick="return ExportClick('../../CSS/ForAdmRegWaitCursor.css',this.id)" OnClick="btnExporttoExcel_Click" />
                                        </td>
                                        <td width="20%" style="text-align:right; padding-right:10px;">
                                        
                                            <div style="float:left;"><asp:Button ID="btnUploadTemplate" runat="server"  OnClientClick="javascript:ShowUploadTemplate();return false;"></asp:Button>&nbsp;&nbsp;</div>
                                            <div style="display:none;">
                                            <div style="float:left;"><asp:Label ID="lblFileToBeUploaded" runat="server"></asp:Label></div>
                                            <div style="float:left;"><input id="txtfileUpload" style="width:300px" type="file" runat="server" />&nbsp;&nbsp;</div>
                                            <div style="float:left;"><asp:Button ID="btnDownloadTemplate" runat="server" OnClick="btnDownloadTemplate_Click" /></div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <!--********************************Put your contents here!********************************-->
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 54px">
                                <WebStructure:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
